/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Loggin2.java
 *
 * Created on 21 mars 2012, 09:08:43
 */

package fr.insa.glaizot;

import javax.swing.JFrame;

/**
 *
 * @author 4glaitan
 */
public class Loggin2 extends javax.swing.JPanel {

    /** Creates new form Loggin2 */
    public Loggin2() {
        initComponents();
//        this.liste.init();
    }

    public static void main(String[] args) {
        TestSGBD.defautCon = TestSGBD.etabliConnection();
        Loggin2 pan = new Loggin2();
        JFrame f = TestePanel.pack("Login", pan);
 //       f.addWindowListener(pan);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jComboBox1 = new javax.swing.JComboBox();
        liste = new javax.swing.JComboBox();

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        liste.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(152, 152, 152)
                .addComponent(liste, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(174, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(124, 124, 124)
                .addComponent(liste, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(151, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void listeActionPerformed(java.awt.event.ActionEvent evt) {
        String nom = (String) this.liste.getSelectedItem();

    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox liste;
    // End of variables declaration//GEN-END:variables

}
